﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace AuthApi.Contracts
{
    [Serializable]
    [DataContract]
    public class UserWithApplication
    {
        public UserWithApplication()
        {
            WebApplicationList = new List<WebApplicationInfoIncluded>();
        }

        [DataMember]
        public long Id { get; set; }

        [DataMember]
        public string UserName { get; set; }

        [DataMember]
        public string GivenName { get; set; }

        [DataMember]
        public string Password { get; set; }

        [DataMember]
        public bool UsaPasswordLocal { get; set; }

        [DataMember]
        public bool UsuarioExistente { get; set; } 

        [DataMember]
        public List<WebApplicationInfoIncluded> WebApplicationList { get; set; }
    }
}
